<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page
	import="com.dts.core.dao.*,com.dts.core.model.*,com.dts.dae.dao.*,com.dts.dae.model.*,com.dts.btisqr.dao.*,com.dts.btisqr.model.*"%>
<%@ page import="com.dts.core.util.*,java.util.*"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
<!--
.style1 {
	font-size: 16px;
	font-weight: bold;
}

.style2 {
	color: #000000;
	font-weight: bold;
}
-->
</style>
<script type="text/javascript" src="scripts/general.js">
	
</script>
<script type="text/javascript" src="scripts/ts_picker.js">
	
</script>

</head>
<body>
	<!-- start header -->

	<h1><jsp:include page="header.html" /></h1>


	<div id="menu">
		<ul>
			<jsp:include page="Adminoptions.html" />
		</ul>
	</div>
	<!-- end header -->
	<hr />
	<!-- start latest post -->
	<div id="latest-post" class="wide-post">
		<h1 class="title">Welcome to AilmentWiretapper</h1>
		<div class="entry">

			<table width="646" height="213" border="0">
				<tr>
					<td width="255" height="209" valign="top"><img
						src="images/img07.jpg" alt="" width="114" height="114"
						class="left" /></td>
					<td width="381" valign="top">

						<fieldset>
							<legend class="style1">Update Project</legend>
							<br />
							<form id="form1" method="post" action="EditProjectAction.jsp"
								name="register">
								<%
									CoreHash aCoreHash = (CoreHash) session.getAttribute("projects");
									Integer projectid = new Integer(request.getParameter("id"));
									Project project = (Project) aCoreHash.get(projectid);
								%>
								<input type="hidden" name="projectid" value="<%=projectid%>" />
								<table width="345" border="0" align="center">
									<tr>
										<td width="158" height="22"><span class="style2">Project
												Name</span></td>
										<td width="177">

											<div align="left">
												<input type="text" name="projectname" id="textfield"
													value="<%=project.getProjectName()%>" />
											</div>
										</td>
									</tr>
									<tr>
										<td height="24"><span class="style2">Start Date</span></td>
										<td>

											<div align="left">
												<input type="te" name="sdate" id="textfield2"
													readonly="readonly"
													value="<%=DateWrapper.parseDate(project.getStartDate1())%>" />
												<a
													href="javascript:show_calendar('document.register.sdate', document.register.sdate.value);">
													<img src="images/cal.gif" alt="a" width="18" height="18"
													border="0" />
												</a>
											</div>
										</td>
									</tr>
									<tr>
										<td height="25"><span class="style2">End Date</span></td>
										<td><input type="text" name="edate" id="textfield3"
											readonly="readonly"
											value="<%=DateWrapper.parseDate(project.getEndDate1())%>" />
											<a
											href="javascript:show_calendar('document.register.edate', document.register.edate.value);">
												<img src="images/cal.gif" alt="a" width="18" height="18"
												border="0" />
										</a></td>
									</tr>
									<tr>
										<td height="7"><span class="style2">Assigned
												Manager</span></td>
										<td><select name="managerid">
												<%
													aCoreHash = new MembersDAO().getProfiles("manager");
													Enumeration enu = aCoreHash.elements();
													Profile profiles = null;
													String select = "";
													while (enu.hasMoreElements()) {
														profiles = (Profile) enu.nextElement();
														select = "";
														if (profiles.getLoginID().equals(project.getAssignedTo())) {
															select = "selected";
														}
												%>
												<option value="<%=profiles.getLoginID()%>" <%=select%>><%=profiles.getLoginID()%></option>
												<%
													}
												%>

										</select></td>
									</tr>
									<tr>
										<td width="158" height="22"><span class="style2">Status</span></td>
										<td width="177">

											<div align="left">
												<select name="status" id="textfield">
													<option value="Proces">Process</option>
													<option value="Completed">Completed</option>
												</select>
											</div>
										</td>
									</tr>
									<tr>
										<td colspan="2"><div align="center">
												<input type="submit" name="button" id="button"
													value="Update" />
											</div></td>
									</tr>
								</table>
							</form>
						</fieldset>
					</td>
				</tr>
			</table>


		</div>
		<div class="bottom"></div>
	</div>
	<!-- end latest post -->
	<!-- start recent posts & comments -->
	<!-- end recent posts & comments -->
	<!-- start submenu -->
	<div id="submenu"></div>
	<!-- end submenu -->

</body>
</html>
